Menu Definition IDs
CHANGED WITH THE APPEARANCE MANAGER
A menu definition ID is supplied to the menu resource or a menu-creation function such asNewMenu
to specify which menu definition function to use in creating the menu. The menu definition ID contains the resource ID of the menu definition function.When mapping is enabled, the pre-Appearance menu definition ID
textmenuProc
will be mapped tokMenuStdMenuProc
, its Appearance-compliant equivalent. For a discussion on how to enable mapping, see "Introduction to the Appearance Manager".
enum { textmenuProc = 0, kMenuStdMenuProc = 63, kMenuStdMenuBarProc = 63 };Constant descriptions
textmenuProc
- The menu definition ID for menus that are not Appearance-compliant.
kMenuStdMenuProc
- The menu definition ID for Appearance-compliant menus.
kMenuStdMenuBarProc
- The menu bar definition ID for Appearance-compliant menu bars.
WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
Only the menu definition ID constanttextmenuProc
(or the definition ID for a custom menu definition function) is supported.